/*
 * Amazon Ads API - Sponsored Products
 * Use the Amazon Ads API for Sponsored Products for campaign, ad group, keyword, negative keyword, and product ad management operations. For more information about Sponsored Products, see the [Sponsored Products Support Center](https://advertising.amazon.com/help?entityId=ENTITY3CWETCZD9HEG2#GWGFKPEWVWG2CLUJ). For onboarding information, see the [account setup](setting-up/account-setup) topic.<br/><br/> 
 *
 * The version of the OpenAPI document: 2.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.math.BigDecimal;
import org.openapitools.client.model.MatchType;

/**
 * AdGroupSuggestedKeywordsResponseEx
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-04-12T19:05:39.971406+08:00[Asia/Shanghai]")
public class AdGroupSuggestedKeywordsResponseEx {
  public static final String SERIALIZED_NAME_AD_GROUP_ID = "adGroupId";
  @SerializedName(SERIALIZED_NAME_AD_GROUP_ID)
  private BigDecimal adGroupId;

  public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId";
  @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID)
  private BigDecimal campaignId;

  public static final String SERIALIZED_NAME_KEYWORD_TEXT = "keywordText";
  @SerializedName(SERIALIZED_NAME_KEYWORD_TEXT)
  private String keywordText;

  public static final String SERIALIZED_NAME_MATCH_TYPE = "matchType";
  @SerializedName(SERIALIZED_NAME_MATCH_TYPE)
  private MatchType matchType;

  /**
   * The state of the ad for which the keyword is suggested.
   */
  @JsonAdapter(StateEnum.Adapter.class)
  public enum StateEnum {
    ENABLED("enabled"),
    
    PAUSED("paused");

    private String value;

    StateEnum(String value) {
      this.value = value;
    }

    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    public static StateEnum fromValue(String value) {
      for (StateEnum b : StateEnum.values()) {
        if (b.value.equals(value)) {
          return b;
        }
      }
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
    }

    public static class Adapter extends TypeAdapter<StateEnum> {
      @Override
      public void write(final JsonWriter jsonWriter, final StateEnum enumeration) throws IOException {
        jsonWriter.value(enumeration.getValue());
      }

      @Override
      public StateEnum read(final JsonReader jsonReader) throws IOException {
        String value =  jsonReader.nextString();
        return StateEnum.fromValue(value);
      }
    }
  }

  public static final String SERIALIZED_NAME_STATE = "state";
  @SerializedName(SERIALIZED_NAME_STATE)
  private StateEnum state;

  public static final String SERIALIZED_NAME_BID = "bid";
  @SerializedName(SERIALIZED_NAME_BID)
  private BigDecimal bid;


  public AdGroupSuggestedKeywordsResponseEx adGroupId(BigDecimal adGroupId) {
    
    this.adGroupId = adGroupId;
    return this;
  }

   /**
   * The ad group identifier.
   * @return adGroupId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The ad group identifier.")

  public BigDecimal getAdGroupId() {
    return adGroupId;
  }


  public void setAdGroupId(BigDecimal adGroupId) {
    this.adGroupId = adGroupId;
  }


  public AdGroupSuggestedKeywordsResponseEx campaignId(BigDecimal campaignId) {
    
    this.campaignId = campaignId;
    return this;
  }

   /**
   * The campaign identifier.
   * @return campaignId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The campaign identifier.")

  public BigDecimal getCampaignId() {
    return campaignId;
  }


  public void setCampaignId(BigDecimal campaignId) {
    this.campaignId = campaignId;
  }


  public AdGroupSuggestedKeywordsResponseEx keywordText(String keywordText) {
    
    this.keywordText = keywordText;
    return this;
  }

   /**
   * The suggested keyword.
   * @return keywordText
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The suggested keyword.")

  public String getKeywordText() {
    return keywordText;
  }


  public void setKeywordText(String keywordText) {
    this.keywordText = keywordText;
  }


  public AdGroupSuggestedKeywordsResponseEx matchType(MatchType matchType) {
    
    this.matchType = matchType;
    return this;
  }

   /**
   * Get matchType
   * @return matchType
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public MatchType getMatchType() {
    return matchType;
  }


  public void setMatchType(MatchType matchType) {
    this.matchType = matchType;
  }


  public AdGroupSuggestedKeywordsResponseEx state(StateEnum state) {
    
    this.state = state;
    return this;
  }

   /**
   * The state of the ad for which the keyword is suggested.
   * @return state
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The state of the ad for which the keyword is suggested.")

  public StateEnum getState() {
    return state;
  }


  public void setState(StateEnum state) {
    this.state = state;
  }


  public AdGroupSuggestedKeywordsResponseEx bid(BigDecimal bid) {
    
    this.bid = bid;
    return this;
  }

   /**
   * The suggested bid for the suggested keyword. Note that this field will not be included in the response if the &#x60;suggestBids&#x60; query parameter is set to &#x60;no&#x60; in the request.
   * @return bid
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The suggested bid for the suggested keyword. Note that this field will not be included in the response if the `suggestBids` query parameter is set to `no` in the request.")

  public BigDecimal getBid() {
    return bid;
  }


  public void setBid(BigDecimal bid) {
    this.bid = bid;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AdGroupSuggestedKeywordsResponseEx adGroupSuggestedKeywordsResponseEx = (AdGroupSuggestedKeywordsResponseEx) o;
    return Objects.equals(this.adGroupId, adGroupSuggestedKeywordsResponseEx.adGroupId) &&
        Objects.equals(this.campaignId, adGroupSuggestedKeywordsResponseEx.campaignId) &&
        Objects.equals(this.keywordText, adGroupSuggestedKeywordsResponseEx.keywordText) &&
        Objects.equals(this.matchType, adGroupSuggestedKeywordsResponseEx.matchType) &&
        Objects.equals(this.state, adGroupSuggestedKeywordsResponseEx.state) &&
        Objects.equals(this.bid, adGroupSuggestedKeywordsResponseEx.bid);
  }

  @Override
  public int hashCode() {
    return Objects.hash(adGroupId, campaignId, keywordText, matchType, state, bid);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AdGroupSuggestedKeywordsResponseEx {\n");
    sb.append("    adGroupId: ").append(toIndentedString(adGroupId)).append("\n");
    sb.append("    campaignId: ").append(toIndentedString(campaignId)).append("\n");
    sb.append("    keywordText: ").append(toIndentedString(keywordText)).append("\n");
    sb.append("    matchType: ").append(toIndentedString(matchType)).append("\n");
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("    bid: ").append(toIndentedString(bid)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

